plug memory leak. Fixes bug #362439.
authorPaolo Borelli <pborelli@katamail.com>
Sun, 15 Oct 2006 22:58:08 +0000 (22:58 +0000)
committerPaolo Borelli <pborelli@src.gnome.org>
Sun, 15 Oct 2006 22:58:08 +0000 (22:58 +0000)
2006-10-15  Paolo Borelli  <pborelli@katamail.com>

* gtk/gtkicontheme.c (pixbuf_supports_svg): plug memory leak.
Fixes bug #362439.

ChangeLog
gtk/gtkicontheme.c

index 108b1a2648046b7a67e57193651b311bc15a1d03..439c70909b7b34f58fcad21c282dccd075bad474 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-10-15  Paolo Borelli  <pborelli@katamail.com>
+
+       * gtk/gtkicontheme.c (pixbuf_supports_svg): plug memory leak.
+       Fixes bug #362439.
+
 2006-10-12  Michael Natterer  <mitch@imendio.com>
 
        * gtk/gtkcombobox.c (gtk_combo_box_class_init): fix commit below
index cb96772260e1526e5a73e8a198c2c97ccc0ce841..52e2673a02187ccf9cfc1626f82e1bd3894454be 100644 (file)
@@ -507,13 +507,15 @@ gtk_icon_theme_set_screen (GtkIconTheme *icon_theme,
 static gboolean
 pixbuf_supports_svg (void)
 {
-  GSList *formats = gdk_pixbuf_get_formats ();
+  GSList *formats;
   GSList *tmp_list;
   static gint found_svg = -1;
 
   if (found_svg != -1)
     return found_svg;
+
+  formats = gdk_pixbuf_get_formats ();
+
   found_svg = FALSE; 
   for (tmp_list = formats; tmp_list && !found_svg; tmp_list = tmp_list->next)
     {